home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn Microsoft Visual Basic 6.0 Now
/
Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO
/
samples
/
ch05
/
lab5.frm
< prev
next >
Wrap
Text File
|
1998-06-07
|
3KB
|
98 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3795
ClientLeft = 1095
ClientTop = 1515
ClientWidth = 5430
LinkTopic = "Form1"
ScaleHeight = 3795
ScaleWidth = 5430
Begin VB.CommandButton Command1
Caption = "Quit"
Height = 375
Left = 3240
TabIndex = 5
Top = 2880
Width = 1095
End
Begin VB.ListBox List1
Height = 1620
Left = 360
TabIndex = 0
Top = 1200
Width = 1935
End
Begin VB.Label Label4
BorderStyle = 1 'Fixed Single
ForeColor = &H00000080&
Height = 375
Left = 2640
TabIndex = 4
Top = 1200
Width = 2415
End
Begin VB.Label Label3
Height = 255
Left = 2640
TabIndex = 3
Top = 960
Width = 1695
End
Begin VB.Label Label2
Caption = "Choose a country"
Height = 255
Left = 360
TabIndex = 2
Top = 960
Width = 1935
End
Begin VB.Label Label1
Caption = "International Welcome Program"
BeginProperty Font
Name = "Times New Roman"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 720
TabIndex = 1
Top = 240
Width = 3855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Load()
List1.AddItem "England"
List1.AddItem "Germany"
List1.AddItem "Spain"
List1.AddItem "Italy"
End Sub
Private Sub List1_Click()
Label3.Caption = List1.Text
Select Case List1.ListIndex
Case 0
Label4.Caption = "Hello, programmer"
Case 1
Label4.Caption = "Hallo, Programmierer"
Case 2
Label4.Caption = "Hola, programador"
Case 3
Label4.Caption = "Ciao, programmatori"
End Select
End Sub